import request from '@/config/axios'
export interface  formDataOv{
  id?: string,
  ruleName: string;
  resLevelName: string,
  earthquakeType: string,
  isTw: string,
  tempId: string,
  userGroups:any,
}
// 查询会议列表
export const getMeeting = (params) => {
    return request.get({ url: '/beidaMeeting/list',params })
}

// 新增会议
export const saveMeeting = (data) => {
    return request.post({ url: '/beidaMeeting/saveOrUpdate', data })
  }
  
// 查询用户组数据
export const getGroup = () => {
  return request.get({ url: '/beidaUserGroup/list' })
}

// 新增修改用户组数据
export const saveGroup = (data) => {
  return request.post({ url: '/beidaUserGroup/saveOrUpdate', data })
}

// 删除用户组数据
export const deleteGroup = (data) => {
  return request.post({ url: '/beidaUserGroup/delete', data})
}

// 获取用户组数据详情
export const getGroupDetail = (params) => {
  return request.get({ url: '/beidaUserGroup/getById',params })
}

// 查询用户
export const getUserList = (params) => {
  return request.get({ url: '/beidaUser/list',params})
}



// 查询发布规则列表
export const getPublishRuleList = (params) => {
  return request.get({ url: 'beidaMeetingRule/list', params })
}

// 获取发布规则详情
export const getPublishRule = (id: number) => {
  return request.get({ url: '/beidaMeetingRule/getById?id=' + id })
}

// 新增发布规则
export const savePublishRule = (data) => {
  return request.post({ url: '/beidaMeetingRule/saveOrUpdate', data })
}

// 删除发布规则
export const deletePublishRule = (data) => {
  return request.post({ url: '/beidaMeetingRule/delete', data})
}

// 启用发布规则
export const enablePublishRule = (params) => {
  return request.get({ url: '/beidaMeetingRule/updateStatus', params})
}


// 启用发布规则
// export const enablePublishRule = (params) => {
//   return request.get({ url: '/beidaUserGroup/updateStatus', params})
// }
